package dao

import "weekly-exam/globar"

func GetOneFile[T any](where *T, data *T) {
	globar.DB.Where(where).Find(data).Limit(1)
}
func Create[T any](data *T) {
	globar.DB.Create(data)
}
